package com.xiaohua.api.mapper;

import com.xiaohua.api.domain.ApiCredential;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * API凭证数据访问层
 *
 * @author 小花
 * @date 2025-03-29
 */
@Mapper
public interface ApiCredentialMapper {
    
    /**
     * 根据API名称查询凭证
     *
     * @param apiName API名称
     * @return API凭证对象
     */
    @Select("SELECT * FROM xh_api_credentials WHERE api_name = #{apiName}")
    ApiCredential findByApiName(@Param("apiName") String apiName);
} 